<%@ page pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib prefix="isperp" uri="/WEB-INF/tlds/isperp.tld"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<table class="form-table">
	<tr>
		<td class="td2" colspan="4">
			<h3>&nbsp;&nbsp;登记信息</h3>
		</td>
	</tr>
	<tr>
		<td class="td1">客户联系人：</td>
		<td class="td2"><label style="font-weight: 700;font-size: 14px">${cusUser.fullname}</label>
		</td>
		<td class="td1">联系电话：</td>
		<td class="td2">${cusUser.tel}</td>
	</tr>
	<%-- 	<tr>
		<td class="td1">联系地址：</td>
		<td class="td2" colspan="3">${cusUser.address}</td>
	</tr> --%>
	<tr>
		<td class="td1">故障编号：</td>
		<td class="td2">${model.code}</td>
		<td class="td1">获得方式：</td>
		<td class="td2">${model.source}</td>
	</tr>
	<tr>
		<td class="td1">标题：</td>
		<td class="td2" colspan="3">${model.title}</td>
	</tr>
	<tr>
		<td class="td1">故障描述：</td>
		<td class="td2" colspan="3">${model.description}</td>
	</tr>
	<tr>
		<td class="td1">期望完成日期：</td>
		<td class="td2"><fmt:formatDate value="${model.expectTime}"
				pattern="yyyy-MM-dd" /></td>
		<td class="td1">报障时间：</td>
		<td class="td2"><fmt:formatDate value="${model.createDate}"
				pattern="yyyy-MM-dd HH:mm" /></td>

	</tr>
	<tr>
		<td class="td1">发生频率：</td>
		<td class="td2" colspan="3">${model.occurrenceFrequency }</td>


	</tr>
	<tr style="display:none">
		<td class="td1">附件：</td>
		<td class="td2" colspan="3"><c:forEach items="${uploadFiles }"
				var="file">
				<a target="_blank" href="${file.path }">${file.name }</a>(大小：${file.size/1000 }KB)
	&nbsp;&nbsp;</c:forEach></td>
	</tr>
	<c:if test="${not empty projectName }">

		<tr>
			<td class="td1">关联项目：</td>
			<td class="td2">${projectName }</td>
			<td class="td1">事件类别：</td>
			<td class="td2">${model.icdCategoryName }</td>

		</tr>
		<tr>
			<td class="td1">服务目录：</td>
			<td class="td2" colspan="3">${serviceCatalogName}</td>

		</tr>
	</c:if>

	<c:if test="${not empty model.assignDate }">

		<tr>
			<td class="td2" colspan="4">

				<h3>处理信息</h3>
			</td>
		</tr>
		<tr>
			<td class="td1">分派人：</td>
			<td class="td2">${model.assignerName}</td>
			<td class="td1">分派时间：</td>
			<td class="td2"><fmt:formatDate value="${model.assignDate}"
					pattern="yyyy-MM-dd" />
			</td>
		</tr>
	</c:if>


	<c:if test="${not empty model.solvedDate }">

		<tr>
			<td class="td1">处理人：</td>
			<td class="td2">${model.solverName }</td>
			<td class="td1">解决时间：</td>
			<td class="td2"><fmt:formatDate value="${model.solvedDate}"
					pattern="yyyy-MM-dd" /></td>
		</tr>
		<tr>
			<td class="td1">处理方式：</td>
			<td class="td2" colspan="3">${model.solutionWay }</td>
		</tr>
		<tr style="display:none">
			<td class="td1">原因分析：</td>
			<td class="td2" colspan="3">${model.reasonAnalyze }</td>
		</tr>
		<tr style="display:none">
			<td class="td1">解决方案：</td>
			<td class="td2" colspan="3">${model.solution }</td>
		</tr>

	</c:if>

	<c:if test="${not empty model.closedDate }">

		<tr>
			<td class="td2" colspan="4">
				<h3>&nbsp;&nbsp;关闭信息</h3>
			</td>
		</tr>
		<tr>
			<td class="td1">关闭方式：</td>
			<td class="td2">${model.closeCode }</td>
			<td class="td1">评价时间：</td>
			<td class="td2"><fmt:formatDate value="${model.closedDate}"
					pattern="yyyy-MM-dd" />
			</td>
		</tr>
		<tr>
			<td class="td1">客户评价：</td>
			<td class="td2"><c:if test="${model.satisfaction eq '5' }">
			    非常满意
			</c:if> <c:if test="${model.satisfaction eq '4' }">
			    满意
			</c:if> <c:if test="${model.satisfaction eq '3' }">
			    一般
			</c:if> <c:if test="${model.satisfaction eq '2' }">
			    不满意
			</c:if> <c:if test="${model.satisfaction eq '1' }">
			    很不满意
			</c:if> <c:if test="${model.satisfaction eq '0' }">
			    尚未评价
			</c:if>
			</td>

		</tr>
		<tr>
			<td class="td1">客户意见：</td>
			<td class="td2" colspan="3">${model.customerOpinion }</td>
		</tr>
	</c:if>
</table>

